-- GENERATED SPELL FOR [Summoned Voidwalker] --


function spell0_5676(pUnit, Event) --@Consuming Rage,Self--
pUnit:FullCastSpellOnTarget(7750,pUnit)
pUnit:RegisterEvent('Sorts_5676', 12000, 1)
end

function spell1_5676(pUnit, Event) --@Summoned Demon,Self--
pUnit:FullCastSpellOnTarget(7741,pUnit)
pUnit:RegisterEvent('Sorts_5676', 634, 1)
end

function Sorts_5676(pUnit, Event)
local choix_sorts_5676 = math.random(0, 1)
if choix_sorts_5676 == 0 then
pUnit:RegisterEvent('spell0_5676', 1, 1)
end
if choix_sorts_5676 == 1 then
pUnit:RegisterEvent('spell1_5676', 1, 1)
end
end

function mob5676_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5676', math.random(1500, 3000), 1)
end

function mob5676_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5676_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5676_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5676, 1, 'mob5676_Action')
RegisterUnitEvent(5676, 2, 'mob5676_Leave')
RegisterUnitEvent(5676, 3, 'mob5676_Kill')
RegisterUnitEvent(5676, 4, 'mob5676_Die')
